import logging
import datetime

from pylons.templating import render_mako as render
from pingsite.lib.base import *

log = logging.getLogger(__name__)

class PingController(BaseController):

    def index(self):
        return ''

    def pong1(self):
        return render('/ping1.mako')

    def pong2(self):
        return render('/ping2.mako')

    def pong(self):
        time = datetime.datetime.now()
        return ('<center>pong!<br/>%s<br/></center>' % time)
